<?php

class DeleteWorkflowNodeAction extends AbstractRunTimeWorkflowNodeAction
{

  protected function configure ()
  {
    $this->setDefaultOption(self::OPTION_LABEL, 'Nachricht löschen');
  }

  /**
   * @param AbstractWorkflowContainer $container
   */
  public function execute (AbstractWorkflowContainer $container)
  {
    $this->node->getObject()
      ->delete();
  }
}